package com.bjsxt.livegoods.recommendation.service.controller;

import com.bjsxt.livegoods.recommendation.service.service.RecommendationService;
import com.bjsxt.livegoods.recommendationserviceapi.RecommendationServiceAPI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 热门推荐服务提供者--控制器
 */
@RestController
public class RecommendationServiceController implements RecommendationServiceAPI {
    @Autowired(required = false)
    private RecommendationService recommendationService;


    @Override
    public Map<String, Object> recommendation(String city) {
        return this.recommendationService.recommendation(city);
    }
}
